package com.zxf.wmsservice.service;

import com.zxf.orderservice.feign.WmsService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WmsServiceImpl implements WmsService {

    @PostMapping("/wms/delivery/{userId}/{productId}")
    public String delivery(@PathVariable("userId")Long userId,
                    @PathVariable("productId")Long productId){
        System.out.println("用户ID="+userId+":购买的商品ID="+productId);
        return "success";
    }
}
